grant-table: refactor grant copy to reduce duplicate code
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 29 Jan 2015 13:21:00 +0000 (14:21 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Jan 2015 13:21:00 +0000 (14:21 +0100)
commit3c72f8c2cf19f735d813081c836f03e3078ee5c1
treee093c02ffbb323888bac4d06a396f4582a03fb84
parent3c2550884d07fc81a96db1b177b497a9900a2202
grant-table: refactor grant copy to reduce duplicate code

Much of the grant copy operation is identical for the source and
destination buffers.  Refactor the code into per-buffer functions.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/common/grant_table.c
xen/include/public/grant_table.h